﻿@model MvcPostText.Models.EntryListAndAdd

@{
    ViewBag.Title = "ListAndCreate";
}

<h2>ListAndCreate</h2>

@{
    Html.RenderPartial("Index", Model.Entries);
    if (Model.NewEntry != null)
    {
        Html.RenderPartial("Create", Model.NewEntry);
    }
    else
    {
        Html.RenderPartial("Create", new ViewDataDictionary());
    }
}

